using System.Runtime.Serialization;

namespace GraphMyCode.Web.Dtos
{
	[DataContract]
	public class LegendDto
	{
		[DataMember]
		public double Left { get; set; }

		[DataMember]
		public double Top { get; set; }

		[DataMember]
		public double Bottom { get; set; }

		[DataMember]
		public double Right { get; set; }

		[DataMember]
		public bool IsVisible { get; set; }

		[DataMember]
		public string BorderColor { get; set; }

		[DataMember]
		public string BackgroundColor { get; set; }

		[DataMember]
		public double BackgroundOpacity { get; set; }

		[DataMember]
		public double ItemSize { get; set; }

		[DataMember]
		public double ItemMargin { get; set; }

		[DataMember]
		public LegendItem[] Items { get; set; }
	}

	[DataContract]
	public class LegendItem
	{
		[DataMember]
		public string Color { get; set; }

		[DataMember]
		public NodeShape Shape { get; set; }

		[DataMember]
		public string Text { get; set; }
	}
}